package com.woniu.user.infra.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 城市表
 * </p>
 *
 * @author Lucas
 * @since 2022-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lg_city")
public class City implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 城市ID
     */
    @TableId(value = "city_id", type = IdType.AUTO)
    private Integer cityId;

    /**
     * 城市名
     */
    private String cityName;

    /**
     * 所属城市(null 没有父级城市 )
     */
    private Integer parentId;

    /**
     * 行政等级(PROVINCE 省|  CITY市 |  COUNTY县）
     */
    private byte[] cityLevel;


}
